package com.vogue.supplymall.shop.domain.service;

import com.vogue.supplymall.shop.domain.model.ProductDetails;

import java.util.List;

/**
 * The interface Product details service.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-01-02
 */
public interface ProductDetailsService extends BaseService<ProductDetails, Long> {

    /**
     * Find product detail list.
     * 商品详情检索
     * type:1：文字详情  2：图文说明
     *
     * @param type the type
     * @param id   the id
     * @return the list
     */
    List<ProductDetails> findProductDetail(Integer type, Long id);
    /**
     * 根据syscodeid、productid得到商品详情信息
     */
    public ProductDetails findProductDetailsBySP(Long syscodeid,Long productid);
    /**
     * 根据syscodeid、productid删除商品详情信息
     */
    public int delProductDetailsBySP(Long syscodeId,Long productId);
}
